import "package:flutter/material.dart";
import "package:fluro/fluro.dart";
import 'package:test_flutter/container/login/Login.dart';
import 'package:test_flutter/container/not_found/Notfound_page.dart';

class Routers {
  static String root = "/";
  static final Router router = new Router();

  static void initRouter() {
    router.notFoundHandler = new Handler(
        handlerFunc: (BuildContext context, Map<String, List<String>> params) {
      return NotfoundPage();
    });
    router.define("/123", handler: new Handler(
        handlerFunc: (BuildContext context, Map<String, List<String>> params) {
      return Login();
    }));
  }
}
